d6def716ad2534dd1152d17cba18f9f097a4ef51,OsmAnd/src/net/osmand/activities/MapActivity.java,MapActivity,onOptionsItemSelected,#MenuItem#,996

Before Change


			} else {
				AlertDialog.Builder builder = new AlertDialog.Builder(this);
				builder.setMessage(getString(R.string.gps_status_app_not_found))
						.setPositiveButton(
								getString(R.string.default_buttons_yes),
								new DialogInterface.OnClickListener() {
									@Override
									public void onClick(DialogInterface dialog,
											int which) {
										Intent intent = new Intent(
												Intent.ACTION_VIEW,
												Uri.parse("market://search?q=pname:" + GPS_STATUS_COMPONENT));
										startActivity(intent);
									}
								})
						.setNegativeButton(getString(R.string.default_buttons_no), null)
						.show();
			}

After Change


			} else {
				AlertDialog.Builder builder = new AlertDialog.Builder(this);
				builder.setMessage(getString(R.string.gps_status_app_not_found));
				builder.setPositiveButton(getString(R.string.default_buttons_yes),
						new DialogInterface.OnClickListener() {
							@Override
							public void onClick(DialogInterface dialog, int which) {
								Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + GPS_STATUS_COMPONENT));
								try {
									startActivity(intent);
								} catch (ActivityNotFoundException e) {
								}
							}
						});
				builder.setNegativeButton(getString(R.string.default_buttons_no), null);
				builder.show();
			}